//全局变量是在所有其他作用域之外声明的
static LANGUAGE: &'static str = "Rust";
const THRESHOLD: i32 = 10;

fn is_big(n: i32) -> bool {
    n > THRESHOLD
}

pub fn example() {
    let n = 16;
    //"string" => 'static mut
    //static是可变的
    println!("This is {}",LANGUAGE);
    println!("The threshold is {}",THRESHOLD);
    println!("{} is {}",n,if is_big(n) {"big"} else {"small"});


}